<template>
    <div class="panel-box">
        <div class="title">


            <span>{{ title }}</span>

            <slot name="btn"></slot>
        </div>

        <el-divider></el-divider>

        <div class="main">
            <!-- <span>内容</span>  -->
            <slot></slot>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        title: {
            type: String,
            default: '标题'
        }
    }
}
</script>

<style lang="less" scoped>
.panel-box {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 1px 0;

    .title {
        display: flex;
        height: 50px;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
    }

    .el-divider--horizontal {
        margin: 0;
    }

    .main {
        min-height: 300px;
        padding: 15px 15px 10px;
    }
}
</style>